package com.reform.mapper;

import com.reform.pojo.phase.BatchPhase;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author mortale
 * @since 2021-08-06
 */
@Mapper
public interface BatchPhaseMapper extends BaseMapper<BatchPhase> {

    @Select(
            "SELECT phase_id AS phaseId,batch_id AS batchId FROM batch_phase WHERE batch_id in (${batchIdList})"
    )
    List<BatchPhase> getBatchPhaseByBatchIdList(@Param("batchIdList") String batchIdList);
}
